package com.lijing.service;

import com.lijing.dao.LeaveMsgDao;
import com.lijing.model.LeaveMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "LeaveMsgService")
public class LeaveMsgServiceImpl implements LeaveMsgService{

    @Autowired
    LeaveMsgDao leaveMsgDao;

    @Override
    public List<LeaveMsg> getLeaveMsgListByClub(Integer cid) {
        return leaveMsgDao.getLeaveMsgListByClub(cid);
    }

    @Override
    public void addLeaveMsg(LeaveMsg leaveMsg) {
        leaveMsgDao.addLeaveMsg(leaveMsg);
    }

    @Override
    public void deleteLeaveMsg(Integer lid) {
        leaveMsgDao.deleteLeaveMsg(lid);
    }
}
